<div class="col-xs-12">
    {{ form(form.getAction() ~ '?tab=general' , 'class': 'forms-signup forms-horizontal' , 'id' : 'formUpdateVideo' , 'enctype' : "multipart/form-data") }}
    {{ form.renderDecorated('imdb') }}
    {{ formDescription.renderDecorated('name') }}
    {{ formDescription.renderDecorated('name_vn') }}
    {{ formDescription.renderDecorated('description') }}
    {# formCategoryLink.renderDecorated('category_id') #}
    <div class="form-group col-md-12 col-sm-3 col-md-offset-0">
        <div class="col-md-2">
            <label for="">Danh mục</label>
        </div>
        <div class="col-md-8">
            <a href="{{ url(config.application.backendUrl ~ '/video/ajaxVideoCategory/loadVideoCategory?object_type=video&object_id=' ) }}" class="btn btn-white btn-default btn-bold btn-sm btnAddDirector" data-toggle="modal" data-target="#modalAddCategoryToObject">
                <i class="ace-icon glyphicon glyphicon-plus"></i>Thêm danh mục
            </a>
            <div id="chooseCategoryToVideo" class="list-category">
            {% for videoCategoryLink in videoCategoryLinks %}
                <div class="checkbox">
                     <label class="position-relative" style="padding-left:0px !important;">
                        <input type="checkbox" checked="checked" class="ace category_id" name="category_id[]" value="{{ videoCategoryLink.category.getId() }}">
                        <span class="lbl">{{ videoCategoryLink.category.getName() }}</span>
                    </label>
                </div>
            {% endfor %}
            </div>
            <div class="clearfix">
                <div class="help-block"></div>
            </div>
        </div>
    </div>


    {{ formDescription.renderDecorated('national_id') }}
    {{ form.renderDecorated('duration') }}
    {{ formDescription.renderDecorated('year_product') }}
    {{ formDescription.renderDecorated('year_publish') }}
    {{ form.renderDecorated('file') }}
    {% if(video.imageLink.getFirst()) %}
        <div class="form-group col-md-12 col-sm-3">
            <div class="col-md-2"><label for=""></label></div>
            <div class="col-md-8">
                {{ image(constant.pathUploadImage ~ video.imageLink.getFirst().images.getImagePath() , 'width' : '250') }}
            </div>
        </div>
    {% endif %}
    {{ form.renderDecorated('file_poster') }}

    {% if(video.getPosterImages()) %}
        <div class="form-group col-md-12 col-sm-3">
            <div class="col-md-2"><label for=""></label></div>
            <div class="col-md-8">
                {{ image(constant.pathUploadImage ~ video.getPosterImages().images.getImagePath() , 'width' : '250') }}
            </div>
        </div>
    {% endif %}
    {# form.renderDecorated('status') #}
    {{ form.renderDecorated('id') }}
    {{ form.renderDecorated('submit') }}
    {{ end_form() }}
</div>
<div class="clearfix"></div>




<!-- Modal -->
<div class="modal fade" id="modalAddCategoryToObject" tabindex="-1" role="dialog" aria-labelledby="modalAddCategoryToObject" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Modal title</h4>

            </div>
            <div class="modal-body"><div class="te"></div></div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
